from playhouse.db_url import connect
from peewee import Model

from setting import setting

db = connect(setting.db)


class BaseModel(Model):
    class Meta:
        database = db
